#pragma once
#include "CXcpObjectBase.h"
#include "NoBaseClass.h"
#include "CXcpObjectThreadSafeAddRefPolicy.h"

class CCachedSitePermission :
	public CXcpObjectBase<NoBaseClass,CXcpObjectThreadSafeAddRefPolicy>
{

public: 
	static HRESULT Create(const CXString *, enum Permission::Value, CCachedSitePermission * *);
	const CXString * GetName();
	enum Permission::Value GetPermission();
	void SetPermission(enum Permission::Value);

protected: 
	CCachedSitePermission();
	virtual ~CCachedSitePermission();
	HRESULT Initialize(const CXString *, enum Permission::Value);
	CXString * m_Name;
	enum Permission::Value m_Value;

};